<script setup>
import { ref } from 'vue'
import { savePoint } from '../hooks/index'
let sum = ref(0)
const point = savePoint()
</script>

<template>
    <h1>当前求和为{{ sum }}</h1>
    <button @click="sum++">点我+1</button>
    <hr>
    <h1>
        <div>当前点击时鼠标的坐标为：</div>
        <div>x：{{point.x}}，y：{{point.y}}</div>
    </h1>
</template>
